package crp.services.api.graphql.models;

import lombok.Getter;
import lombok.Setter;
import org.eclipse.microprofile.graphql.Input;

import javax.validation.constraints.NotNull;
import java.util.Map;

@Input("SSOIdentityInput")
@Getter
@Setter
public class SSOIdentityInput {
    @NotNull
    private String provider;

    @NotNull
    private Map<@NotNull String, @NotNull String> attributes;

    public Map<String, Object> ofAttributes(){
        return Map.copyOf(attributes);
    }
}
